import requests
import json
import execjs

url="https://www.toutiao.com/api/pc/feed/?category=movie&utm_source=toutiao&widen=1&max_behot_time=0&max_behot_time_tmp=0&tadrequire=true&as=A135DD29CFB49CF&cp=5D9F14B9BC9FAE1&_signature=m8CDeQAAxmtzGqEEBB1gSZvAg2"

headers={
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
    "cookie":"tt_webid=6744890312793818627; csrftoken=e707dafff3c0dbb51a0fd7e6fc059767; __tasessionId=8luaez9pn1570720193470",
    "referer":"https://www.toutiao.com/ch/movie/",
    "authority":"www.toutiao.com",
}

params={
    "category": "movie",
    "utm_source": "toutiao",
    "widen": 1,
    "max_behot_time": 0,
    "max_behot_time_tmp": 0,
    "tadrequire": "true",
    "as": "A135DD29CFB49CF",
    "cp": "5D9F14B9BC9FAE1",
    "_signature":"m8CDeQAAxmtzGqEEBB1gSZvAg2"
}

respose=requests.get(url,headers=headers)
json=json.loads(respose.text)

print(json['data'])
max_behot_time=json['next']['max_behot_time']

jsUrl="https://s3a.pstatp.com/toutiao/resource/ntoutiao_web/page/home/whome/home_b57ddd1.js"
source=open(jsUrl).read()
context=execjs.compile(source)
context.call()